using Microsoft.UI.Xaml.Data;
using MultiAgentsShared;

namespace MultiAgentsClient.Converter;

public class InputFileNameConverter : IValueConverter
{
    object IValueConverter.Convert(object value, Type targetType, object parameter, string language)
    {
        if (value is string fullFileName)
        {
            return Path.GetFileName(fullFileName);
        }

        throw Debug.ShouldNotHappen();
    }

    object IValueConverter.ConvertBack(object value, Type targetType, object parameter, string language)
    {
        throw new NotImplementedException();
    }
}
